$OpenBSD: patch-src_ruby_supportlib_phusion_passenger_native_support_rb,v 1.1 2016/11/04 22:08:19 jeremy Exp $

Remove arch-specific path.

--- src/ruby_supportlib/phusion_passenger/native_support.rb.orig	Mon Jul 25 19:56:07 2016
+++ src/ruby_supportlib/phusion_passenger/native_support.rb	Tue Nov  1 13:42:50 2016
@@ -35,7 +35,6 @@ module PhusionPassenger
       if defined?(NativeSupport)
         return true
       else
-        load_from_native_support_output_dir ||
         load_from_buildout_dir ||
         load_from_load_path ||
         load_from_home_dir
@@ -61,10 +60,7 @@ module PhusionPassenger
 
   private
     def archdir
-      @archdir ||= begin
-        PhusionPassenger.require_passenger_lib 'platform_info/binary_compatibility'
-        PlatformInfo.ruby_extension_binary_compatibility_id
-      end
+      "openbsd"
     end
 
     def libext
@@ -100,7 +96,7 @@ module PhusionPassenger
     def load_from_buildout_dir
       if PhusionPassenger.build_system_dir
         begin
-          return load_native_extension("#{PhusionPassenger.build_system_dir}/buildout/ruby/#{archdir}/#{library_name}")
+          return load_native_extension("#{PhusionPassenger.build_system_dir}/buildout/#{library_name}")
         rescue LoadError
           return false
         end
